package kr.hkit.androidcomplete03.ch25;

import kr.hkit.androidcomplete03.R;
import android.app.Activity;
import android.app.NotificationManager;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class NapEnd extends Activity {
	protected void onCreate(Bundle savedInstanceState) { 
		  super.onCreate(savedInstanceState); 
		  setContentView(R.layout.napend); 
		  NotificationManager NM =(NotificationManager)getSystemService(NOTIFICATION_SERVICE); 
		  NM.cancel(NapAlarm.NAPNOTI); 
		  Button btn = (Button) findViewById(R.id.end); 
		  btn.setOnClickListener(new Button.OnClickListener() { 
		    public void onClick(View v) { 
		      finish(); 
		    } 
		  }); 
		        } 
}
